package net.hn.hnms.sys.system.mapper;

import net.hn.hnms.sys.common.mybatis.core.mapper.BaseMapperPlus;
import net.hn.hnms.sys.system.api.domain.SysUser;
import net.hn.hnms.sys.system.domain.UserNoticeStatus;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface UserNoticeStatusMapper extends BaseMapperPlus<UserNoticeStatusMapper, UserNoticeStatus, UserNoticeStatus> {


    @Update("<script>" +
            " update  user_notice_status set  status = #{flag} " +
            " where user_id = #{userId} and notice_id= #{noticeId}" +
            "</script>")
    void updateById(@Param("noticeId") Long noticeId, @Param("userId") Long userId,@Param("flag") Integer flag);


}
